import Func from '@/utils/functions'

const proxy = {
    async logout(params = {}, header = {}) {
        return uni.request({
            url: '/v1/user/logout',
            method: 'GET',
            data: params,
            header
        })
    },
    async userClose(params = {}, header = {}) {
        return uni.request({
            url: '/v1/user/close',
            method: 'GET',
            data: params,
            header
        })
    }
}

const p = Func.proxyEndpoint(proxy)
export const userClose = p.userClose
export const logout = p.logout